package com.hsshy.beam.sharding.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hsshy.beam.sharding.entity.Order;
import com.hsshy.beam.sharding.entity.OrderItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderItemMapper extends BaseMapper<OrderItem> {
    
    void createIfNotExistsTable();
    
    void truncateTable();
    

    void delete(Long orderItemId);
    
    List<OrderItem> selectAll();

    List<Map> selectList(@Param("userId") Long userId, @Param("orderId") Long orderId);

    void dropTable();
}
